package com.seanliao.nav.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.seanliao.nav.common.domain.vo.UserVO;
import com.seanliao.nav.entity.SysUser;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 用户表  Mapper 接口
 * </p>
 *
 * @author Sean_Liao
 * @since 2024-01-23
 */
public interface SysUserMapper extends BaseMapper<SysUser> {

    IPage<UserVO> pageUser(Page<UserVO> pp, @Param(Constants.WRAPPER) Wrapper<?> queryWrapper);

    IPage<UserVO> pageUserByRole(Page<UserVO> pp, @Param(Constants.WRAPPER) Wrapper<?> queryWrapper);

}
